
#ifndef SOPFORK_H
#define SOPFORK_H

#include <qobject.h>
#include <qptrlist.h>
class QProcess;
class QSocketNotifier;
class TabWidget;

class SopFork:public QObject
{
   Q_OBJECT			/// 
 public:
   SopFork (QWidget * widget, QString url, QString name, QString type = "wmv",
	    QWidget * parent = 0, const char *name2 = 0);
    ~SopFork ();
   QProcess *sop;
   bool forkSop ();
   void killSop ();
   QSocketNotifier *snstatus;
   char outport[8];
   QString channelurl;
   QString channelname;
   QString channeltype;
   QString message;
   QString arraymessage[6];
     QPtrList < QWidget > listpage;


 private:
     TabWidget * tabwidget;
   char inport[8];
   QTimer *echotimer;


   private slots:		////
   void parseStdout ();
   void onSopExit ();
   void streamReady (int);
   void echo ();

};

#endif
